<?php 
APP::uses('Controller', 'AppController');
class BackendsController extends AppController {
	public $uses = array('User', 'Comment', 'Game', 'Publisher', 'System', 'Categories', 'Genre', 'Image', 'Group');
	public function admin_index() {
		$groups = $this->Group->find('count');
		$users = $this->User->find('count');
		$comments = $this->Comment->find('count');
		$games = $this->Game->find('count');
		$publishers = $this->Publisher->find('count');
		$systems = $this->System->find('count');
		$categories = $this->Categories->find('count');
		$genres = $this->Genre->find('count');
		$images = $this->Image->find('count');
		
		$this->set(compact('groups', 'users', 'comments', 'games', 'publishers', 'systems', 'categories', 'genres', 'images'));
		$this->set('title_layout', 'Thống kê nhanh các chuyên mục');
	}
}
?>